<?php


namespace app\controllers;


use app\models\request\ReqTypeList;
use app\service\TypeService;

class TypeListController extends BaseJsonController
{
    /**
     * @param $req ReqTypeList
     * @param $userInfo
     * @return array|mixed
     */
    public function doService($req, $userInfo)
    {
        $s = new TypeService();
        return $s->listPage($req);
    }


    /**
     * @return ReqTypeList
     */
    protected function injectionReq()
    {
        return new ReqTypeList();
    }


}